package com.macaku.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @TableName short_link
 */
@TableName(value ="short_link")
@Data
@ApiModel(description = "短链接实体")
public class ShortLink implements Serializable {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("源url")
    private String originUrl;

    @ApiModelProperty("短链code")
    private String shortCode;

    @ApiModelProperty("是否被使用过")
    private Boolean isUsed;

    @ApiModelProperty("逻辑删除")
    private Boolean isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}